<%@ page contentType="text/html"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="javax.ejb.*,javax.naming.*,java.rmi.*" %>
<%@ page import="jwanalytics.ejb.webhouse.*,jwanalytics.ejb.dataobjects.*,jwanalytics.web.*,javax.faces.context.*" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<f:view>
  <html>
    <head>
	  <base href="<%=basePath%>">
      <title>page2.jsp</title>
      <meta http-equiv="pragma" content="no-cache">
	  <meta http-equiv="cache-control" content="no-cache">
	  <meta http-equiv="expires" content="0">    
	  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	  <meta http-equiv="description" content="This is my page">
	  <!--
	     <link rel="stylesheet" type="text/css" href="styles.css">
	  -->
    </head>
  <body bgcolor="#FFFF00">
   <h:form>
    <h2>Page 2: day camp business optimized page.</h2>
    
    <p>This page has been selected by the optimization algorithm as the page that is most likely to convince an user browsing the daycamp business site to commit to  a purchase/order
    in this case the reservation of daycamp activities for some visitors.</p>
	
	<p>This page 2 is an intermediate page.  While page1 is most suited for visitors which demonstrate little interest on the site content and browse fast through pages, and page 3
	is most suited for visitors with a lot of interest, this page is a sort of middle term in between page1 and page3.  If this was a price optimization, not content optimization,
	then this page would display average/medium prices, not low, not high.</p>
	    
    <a href="faces/goal.jsp">Go to goal page, order day camp on the Rocky Mountains.</a>
    
        <!--  Logging the page. -->
        <%
        String userSessionBeanName = "userSessionBean";
        if (session.getAttribute(userSessionBeanName) == null) {
        	session.setAttribute(userSessionBeanName, new UserSessionBean());
        }
		
		((UserSessionBean)session.getAttribute(userSessionBeanName)).logPageHit("page2.jsp", request, response);
		
        %>
      </h:form>
      
      <img src="http://www.geocities.com/aacesta/sitemap_v1.0.png" />
      
    </body>
  </html>
</f:view>
